Release 10.1A: OpenEdge Data Management:
SQL Reference


ATAN2

Returns the arctangent of the x and y coordinates specified by expression1 and expression2.

Syntax

ATAN2 ( expression1 , expression2 ) 

Example

The following example illustrates two ways to use the ATAN2 function:

select atan2 (1,1) * (180/ pi()) 'Arctangent in degrees' from syscalctable; 
  
ARCTANGENT IN DEGREES 
-----------------------  
45.000000000000000 
  
1 record selected 
  
  
select atan2 (1,1) 'Arctangent in radians' from syscalctable; 
  
ARCTANGENT IN RADIANS 
-----------------------  
0.785398163397448 
  
1 record selected 

Notes

Compatibility

ODBC compatible


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095